package com.baibei.gateway.zuul.filter;

import com.netflix.zuul.ZuulFilter;
import org.apache.log4j.Logger;

/**
 * @author: Dreyer
 * @date: 2017/2/20 11:52
 * @description:
 */
public class RoutingFilter extends ZuulFilter {
    private Logger logger = Logger.getLogger(RoutingFilter.class);

    @Override
    public String filterType() {
        return "routing";
    }

    @Override
    public int filterOrder() {
        return 1;
    }

    @Override
    public boolean shouldFilter() {
        return true;
    }

    @Override
    public Object run() {
        logger.info("RoutingFilter is do filter...");
        return null;
    }
}